export const menus = [{
  title: "置顶",
  keyCode: '',
  disabled: false,
  data: 'top',
  visible: true,
}, {
  title: "置低",
  keyCode: '',
  disabled: false,
  data: 'bottom',
  visible: true,
}, {
  title: "上一图层",
  keyCode: '',
  disabled: false,
  data: 'up',
  visible: true,
}, {
  title: "下一图层",
  keyCode: '',
  disabled: false,
  data: 'down',
  visible: true,
}, {
  title: "divider",
  keyCode: '',
  data: '',
  visible: true,
}, {
  title: '组合',
  keyCode: '',
  disabled: false,
  data: 'combine',
  visible: false,
}, {
  title: "组合为状态",
  keyCode: '',
  disabled: false,
  data: 'combine',
  visible: false,
}, {
  title: "取消组合",
  keyCode: '',
  disabled: false,
  data: 'uncombine',
  visible: false,
}, {
  title: "锁定",
  keyCode: '',
  disabled: false,
  data: 'locked',
  visible: true,
}, {
  title: "解锁",
  keyCode: '',
  disabled: false,
  data: 'unlocked',
  visible: false,
}, {
  title: "divider",
  keyCode: '',
  data: '',
  visible: true,
}, {
  title: "删除",
  keyCode: '',
  disabled: false,
  data: 'delete',
  visible: true,
}, {
  title: "divider",
  keyCode: '',
  data: '',
  visible: true,
}, {
  title: '变成节点',
  keyCode: '',
  disabled: false,
  data: 'node',
  visible: false,
}, {
  title: '变成连线',
  keyCode: '',
  disabled: false,
  data: 'line',
  visible: false,
}, {
  title: "divider",
  keyCode: '',
  data: 'penType',
  visible: true,
}, {
  title: "撤销",
  keyCode: "Ctrl + Z",
  disabled: false,
  data: 'undo',
  visible: true,
}, {
  title: "恢复",
  keyCode: "Shift + Z",
  disabled: false,
  data: 'redo',
  visible: true,
}, {
  title: "divider",
  keyCode: '',
  data: '',
  visible: true,
}, {
  title: "剪切",
  keyCode: "Ctrl + X",
  disabled: false,
  data: 'cut',
  visible: true,
}, {
  title: "复制",
  keyCode: "Ctrl + C",
  disabled: false,
  data: 'copy',
  visible: true,
}, {
  title: "粘贴",
  keyCode: "Ctrl + V",
  disabled: false,
  data: 'paste',
  visible: true,
}]

export const animateTypeOption = [{
  name: '上下跳动',
  key: 'upDown',
  frames: [{
    duration: 100,
    y: -10
  }, {
    duration: 80,
    y: 10
  }, {
    duration: 50,
    y: -10
  }, {
    duration: 30,
    y: 10
  }, {
    duration: 300,
    y: 0
  }]
}, {
  name: '左右跳动',
  key: 'leftRight',
  frames: [{
    duration: 100,
    x: -10
  }, {
    duration: 80,
    x: 10
  }, {
    duration: 50,
    x: -10
  }, {
    duration: 30,
    x: 10
  }, {
    duration: 300,
    x: 0
  }]
}, {
  name: '心跳',
  key: 'heart',
  frames: [{
    duration: 100,
    scale: 1.1
  }, {
    duration: 400,
    scale: 1
  }],
}, {
  name: '成功',
  key: 'success',
  frames: [{
    background: "#389e0d22",
    color: "#237804",
    duration: 500
  }],
}, {
  name: '警告',
  key: 'warning',
  frames: [{
    color: "#fa8c16",
    duration: 300,
    lineDash: [10, 10]
  }, {
    color: "#fa8c16",
    duration: 500
  }, {
    color: "#fa8c16",
    duration: 300,
    lineDash: [10, 10]
  }],
}, {
  name: '错误',
  key: 'error',
  frames: [{
    background: "#cf132222",
    color: "#cf1322",
    duration: 100
  }],
}, {
  name: '炫耀',
  key: 'show',
  frames: [{
    color: "#fa541c",
    duration: 100,
    rotate: -10
  }, {
    color: "#fa541c",
    duration: 100,
    rotate: 10
  }, {
    color: "#fa541c",
    duration: 100,
    rotate: 0
  }],
}, {
  name: "跳动",
  key: "bounce",
  frames: [{
    duration: 300,
    y: 10
  }]
}, {
  name: "旋转",
  key: "rotate",
  frames: [{
    duration: 1000,
    rotate: 360
  }]
}, {
  name: "提示",
  key: "tip",
  frames: [{
    duration: 300,
    scale: 1.3
  }]
// }, {
//   name: '自定义',
//   key: 'custom',
//   frames: [],
}]